#include "diaq.h"
#include "ui_diaq.h"
#include <QCloseEvent>

DiaQ::DiaQ(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::DiaQ)
{
    ui->setupUi(this);
}

DiaQ::DiaQ(QString text, QWidget *parent) :
    QDialog(parent),
    ui(new Ui::DiaQ)
{
    ui->setupUi(this);
    this->ui->label->setText(text);
    this->setWindowFlags(Qt::Dialog);
}

DiaQ::~DiaQ()
{
    delete ui;
}

void DiaQ::slotFinish(){
    emit this->accept();
}

void DiaQ::closeEvent(QCloseEvent *event)
 {
    event->ignore();
 }

void DiaQ::reject(){

}

void DiaQ::setText(const QString &text){
    this->ui->label->setText(text);
}
